//这里有除了登录页之外的所有路由配置
const allRoutes = [
    {
      path: "welcome",
      component: () =>
        import(/*webpackChunkName:"welcome" */ "../pages/Home/Welcome"),
      name: "welcome",
      meta: {
        //储存一些属性
        fullPath: "/welcome",
        icon: "iconfont icon-guanlishouye",
        name: "管理首页",
      },
    },
    {
      path: "studentManager",
      component: () =>
        import(
          /*webpackChunkName:"studentManager" */ "../pages/Home/StudentManager"
        ),
      name: "studentManager",
      redirect: "/studentManager/product",
      meta: {
        //储存一些属性
        fullPath: "/studentManager",
        icon: "iconfont icon-xueyuanguanli",
        name: "学员管理",
      },
      children: [
        {
          path: "dormitory",
          component: () =>
            import(
              /*webpackChunkName:"dormitory" */ "../pages/Home/StudentManager/StudentDormitory"
            ),
          name: "dormitory",
          meta: {
            //储存一些属性
            fullPath: "/studentManager/dormitory",
            icon: "iconfont icon-XX_001",
            name: "学员宿舍",
          },
        },
        {
          path: "product",
          component: () =>
            import(
              /*webpackChunkName:"product" */ "../pages/Home/StudentManager/StudentProduct"
            ),
          name: "product",
          meta: {
            //储存一些属性
            fullPath: "/studentManager/product",
            icon: "iconfont icon-xiangmuguanli",
            name: "学员项目管理",
          },
        },
        {
          path: "profill",
          component: () =>
            import(
              /*webpackChunkName:"profill" */ "../pages/Home/StudentManager/StudentProfill"
            ),
          name: "profill",
          meta: {
            //储存一些属性
            fullPath: "/studentManager/profill",
            icon: "iconfont icon-ziliaoku",
            name: "学员资料",
          },
        },
      ],
    },
    {
      path: "users",
      component: () =>
        import(/*webpackChunkName:"users" */ "../pages/Home/Users"),
      name: "users",
      meta: {
        //储存一些属性
        fullPath: "/users",
        icon: "iconfont icon-yonghuguanli",
        name: "用户管理",
      },
    },
    {
      path: "attendance",
      component: () =>
        import(/*webpackChunkName:"attendance" */ "../pages/Home/Attendance"),
      name: "attendance",
      meta: {
        //储存一些属性
        fullPath: "/attendance",
        icon: "iconfont icon-kaoqinguanli",
        name: "考勤管理",
      },
    },
    {
      path: "statistics",
      component: () =>
        import(/*webpackChunkName:"statistics" */ "../pages/Home/Statistics"),
      name: "statistics",
      meta: {
        //储存一些属性
        fullPath: "/statistics",
        icon: "iconfont icon-shujutongji",
        name: "数据统计",
      },
    },
    {
      path: "mine",
      component: () => import(/*webpackChunkName:"mine" */ "../pages/Home/Mine"),
      name: "mine",
      meta: {
        //储存一些属性
        fullPath: "/mine",
        icon: "iconfont icon-wodezhongxin",
        name: "我的中心",
      },
    },
    //--
  ];

export default allRoutes